<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>登录</title>
<link rel="stylesheet" href="/css/normalize.css">
<link rel="stylesheet" href="/css/login.css">
<link rel="stylesheet" href="/css/sign-up-login.css">
<link rel="stylesheet" type="text/css" href="http://cdn.bootcss.com/font-awesome/4.6.0/css/font-awesome.min.css">
<link rel="stylesheet" href="/css/inputEffect.css" />
<link rel="stylesheet" href="/css/tooltips.css" />
<link rel="stylesheet" href="/css/spop.min.css" />

<script src="/js/jquery.min.js"></script>
<script src="/js/snow.js"></script>
<script src="/js/jquery.pure.tooltips.js"></script>
<script src="/js/spop.min.js"></script>
<script>	
	(function() {
		// trim polyfill : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim
		if (!String.prototype.trim) {
			(function() {
				// Make sure we trim BOM and NBSP
				var rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
				String.prototype.trim = function() {
					return this.replace(rtrim, '');
				};
			})();
		}

		[].slice.call( document.querySelectorAll( 'input.input__field' ) ).forEach( function( inputEl ) {
			// in case the input is already filled..
			if( inputEl.value.trim() !== '' ) {
				classie.add( inputEl.parentNode, 'input--filled' );
			}

			// events:
			inputEl.addEventListener( 'focus', onInputFocus );
			inputEl.addEventListener( 'blur', onInputBlur );
		} );

		function onInputFocus( ev ) {
			classie.add( ev.target.parentNode, 'input--filled' );
		}

		function onInputBlur( ev ) {
			if( ev.target.value.trim() === '' ) {
				classie.remove( ev.target.parentNode, 'input--filled' );
			}
		}
	})();
	
	$(function() {	
		$('#login #login-password').focus(function() {
			$('.login-owl').addClass('password');
		}).blur(function() {
			$('.login-owl').removeClass('password');
		});
		$('#login #register-password').focus(function() {
			$('.register-owl').addClass('password');
		}).blur(function() {
			$('.register-owl').removeClass('password');
		});
		$('#login #register-repassword').focus(function() {
			$('.register-owl').addClass('password');
		}).blur(function() {
			$('.register-owl').removeClass('password');
		});
		$('#login #forget-password').focus(function() {
			$('.forget-owl').addClass('password');
		}).blur(function() {
			$('.forget-owl').removeClass('password');
		});
	});
	
	function goto_register(){
		$("#register-username").val("");
		$("#register-password").val("");
		$("#register-repassword").val("");
		$("#register-code").val("");
		$("#tab-2").prop("checked",true);
	}
	
	function goto_login(){
		$("#login-username").val("");
		$("#login-password").val("");
		$("#tab-1").prop("checked",true);
	}
	
	function goto_forget(){
		$("#forget-username").val("");
		$("#forget-password").val("");
		$("#forget-code").val("");
		$("#tab-3").prop("checked",true);
	}


    //登录
	function login(){
		var username = $("#login-username").val(),
            password = $("#login-password").val(),
            validatecode = null,
            flag = false;
		//判断用户名密码是否为空
		if(username == ""){
			$.pt({
        		target: $("#login-username"),
        		position: 'r',
        		align: 't',
        		width: 'auto',
        		height: 'auto',
        		content:"用户名不能为空"
        	});
			flag = true;
		}
		if(password == ""){
			$.pt({
        		target: $("#login-password"),
        		position: 'r',
        		align: 't',
        		width: 'auto',
        		height: 'auto',
        		content:"密码不能为空"
        	});
			flag = true;
		}
		//用户名只能是4-16位的字母或数字
		var regExp = new RegExp("^[a-zA-Z0-9_]{4,16}$");
		if(!regExp.test(username)){
			$.pt({
        		target: $("#login-username"),
        		position: 'r',
        		align: 't',
        		width: 'auto',
        		height: 'auto',
        		content:"用户名必须为4-16位的字母或数字"
        	});
			flag = true;
		}
		
		if(flag){
			return false;
		}else{
		    //登录
            $.ajax({
                type: "post",
                url: "user/logout.json",
                dataType: "json",
                success: function(data) {
                    if(data.success == false){
                        alert(data.errorMsg);
                    }else{

                        var param = {
                            username : $("#login-username").val(),
                            password : $("#login-password").val()
                        };
                        $.ajax({
                            type: "post",
                            url: "user/checkLogin.jhtml",
                            data: param,
                            dataType: "json",
                            success: function(data) {
                                if(data.success == false){
                                    alert(data.errorMsg);
                                }else{
                                    //登录成功
                                    window.location.href = "/user/loginsuccess.jhtml";
                                }
                            },
                            error: function(data) {
                                alert("调用失败....");
                            }
                        });

                    }
                },
                error: function(data) {
                    alert("调用失败....");
                }
            });
		}
	}


	//注册验证码判断
	function register(){
		var username = $("#register-username").val(),
			password = $("#register-password").val(),
			repassword = $("#register-repassword").val(),
			phone = $("#register-phone").val(),
			flag = false,
			validatecode = null;
		//判断用户名密码是否为空
		if(username == ""){
			$.pt({
        		target: $("#register-username"),
        		position: 'r',
        		align: 't',
        		width: 'auto',
        		height: 'auto',
        		content:"用户名不能为空"
        	});
			flag = true;
		}
		if(password == ""){
			$.pt({
        		target: $("#register-password"),
        		position: 'r',
        		align: 't',
        		width: 'auto',
        		height: 'auto',
        		content:"密码不能为空"
        	});
			flag = true;
		}else{
			if(password != repassword){
				$.pt({
	        		target: $("#register-repassword"),
	        		position: 'r',
	        		align: 't',
	        		width: 'auto',
	        		height: 'auto',
	        		content:"两次输入的密码不一致"
	        	});
				flag = true;
			}
		}
		//用户名只能是4-16位之间的字母或数字
		var regExp = new RegExp("^[a-zA-Z0-9_]{4,16}$");
		if(!regExp.test(username)){
			$.pt({
        		target: $("#register-username"),
        		position: 'r',
        		align: 't',
        		width: 'auto',
        		height: 'auto',
        		content:"用户名必须为4-16位之间的字母或数字"
        	});
			flag = true;
		}
		//检查用户名是否已经存在
		//调后台代码检查用户名是否已经被注册
        var myreg=/^[1][3,4,5,7,8][0-9]{9}$/;
		if(!myreg.test(phone)){
			$.pt({
		        target: $("#register-phone"),
		        position: 'r',
		        align: 't',
		        width: 'auto',
		        height: 'auto',
		        content:"手机号不正确"
		       });
			flag = true;
		}

        $.ajax({
            type: "POST",
            url: "/user/register",
            data: "isok=3&register-username="+username+"&register-phone="+phone,
            async: false,
            dataType:"Json",
            success: function(Json){
                if (Json == "no") {
                    $.pt({
                        target: $("#register-phone"),
                        position: 'r',
                        align: 't',
                        width: 'auto',
                        height: 'auto',
                        content:"用户名已注册，请重新输入"
                    });
                    flag = true;
                }else if(Json == "pno"){
                    $.pt({
                        target: $("#register-phone"),
                        position: 'r',
                        align: 't',
                        width: 'auto',
                        height: 'auto',
                        content:"手机号已注册，请直接登录"
                    });
                    flag = true;
				}
            }
        });

		if(flag){
			return false;
		}else{//注册
            $.ajax({
                type: "POST",
                url: "/user/register",
                data: "isok=2&register-phone="+phone,
                async: false,
                dataType:"Json",
                success: function(Json){
                    if (Json == "ok") {
                        $.pt({
                            target: $("#register-phone"),
                            position: 'r',
                            align: 't',
                            width: 'auto',
                            height: 'auto',
                            content:"已发送，注意查收"
                        });
                    }
                }
            });
            settime();
		}
	}


	//注册
    function register2(){
        var username = $("#register-username").val(),
            password = $("#register-password").val(),
            repassword = $("#register-repassword").val(),
            phone = $("#register-phone").val(),
            code = $("#register-code").val(),
            flag = false,
            validatecode = null;
        //判断用户名密码是否为空
        if(username == ""){
            $.pt({
                target: $("#register-username"),
                position: 'r',
                align: 't',
                width: 'auto',
                height: 'auto',
                content:"用户名不能为空"
            });
            flag = true;
        }
        if(password == ""){
            $.pt({
                target: $("#register-password"),
                position: 'r',
                align: 't',
                width: 'auto',
                height: 'auto',
                content:"密码不能为空"
            });
            flag = true;
        }else{
            if(password != repassword){
                $.pt({
                    target: $("#register-repassword"),
                    position: 'r',
                    align: 't',
                    width: 'auto',
                    height: 'auto',
                    content:"两次输入的密码不一致"
                });
                flag = true;
            }
        }
        //用户名只能是4-16位之间的字母或数字
        var regExp = new RegExp("^[a-zA-Z0-9_]{4,16}$");
        if(!regExp.test(username)){
            $.pt({
                target: $("#register-username"),
                position: 'r',
                align: 't',
                width: 'auto',
                height: 'auto',
                content:"用户名必须为4-16位之间的字母或数字"
            });
            flag = true;
        }
        //检查用户名是否已经存在
        //调后台代码检查用户名是否已经被注册
        var myreg=/^[1][3,4,5,7,8][0-9]{9}$/;
        if(!myreg.test(phone)){
            $.pt({
                target: $("#register-phone"),
                position: 'r',
                align: 't',
                width: 'auto',
                height: 'auto',
                content:"手机号不正确"
            });
            flag = true;
        }

        $.ajax({
            type: "POST",
            url: "/user/register",
            data: "isok=3&register-username="+username+"&register-phone="+phone,
            async: false,
            dataType:"Json",
            success: function(Json){
                if (Json == "no") {
                    $.pt({
                        target: $("#register-phone"),
                        position: 'r',
                        align: 't',
                        width: 'auto',
                        height: 'auto',
                        content:"用户名已注册，请重新输入"
                    });
                    flag = true;
                }else if(Json == "pno"){
                    $.pt({
                        target: $("#register-phone"),
                        position: 'r',
                        align: 't',
                        width: 'auto',
                        height: 'auto',
                        content:"手机号已注册，请直接登录"
                    });
                    flag = true;
                }
            }
        });

        if(flag){
            return false;
        }else{
            $.ajax({
                type: "POST",
                url: "/user/register",
                data: "isok=1&register-username="+username+"&register-phone="+phone+"&register-password="+password+"&register-code="+code,
                async: false,
                dataType:"Json",
                success: function(Json){
                    if(Json == "cuowu"){
                        $.pt({
                            target: $("#register-code"),
                            position: 'r',
                            align: 't',
                            width: 'auto',
                            height: 'auto',
                            content:"验证码错误"
                        });
					}else if(Json == "xiaoshi"){
                        $.pt({
                            target: $("#register-code"),
                            position: 'r',
                            align: 't',
                            width: 'auto',
                            height: 'auto',
                            content:"请重新获取验证码"
                        });
					}else {
                        if (Json == "ok") {
                            alert("注册成功")
                            window.location.href="/index/index";
                        }else{
                            alert("注册失败")
                        }
					}
                }
            });
        }
    }


	//重置密码判断
	function forget(){
		var phone = $("#forget-phone").val(),
			password = $("#forget-password").val(),
            repassword = $("#forget-repassword").val(),
			flag = false,
			validatecode = null;

		//判断手机号是否正确
        var myreg=/^[1][3,4,5,7,8][0-9]{9}$/;
        if(!myreg.test(phone)){
            $.pt({
                target: $("#forget-phone"),
                position: 'r',
                align: 't',
                width: 'auto',
                height: 'auto',
                content:"手机号不正确"
            });
            flag = true;
        }else{
            $.ajax({
                type: "POST",
                url: "/user/forget",
                data: "isok=1&phone="+phone,
                async: false,
                dataType:"Json",
                success: function(Json){
                    if (Json == "no") {
                        $.pt({
                            target: $("#forget-code"),
                            position: 'r',
                            align: 't',
                            width: 'auto',
                            height: 'auto',
                            content:"手机未注册，请注册"
                        });
                        flag = true;
                    }
                }
            });
		}

        if(password == ""){
            $.pt({
                target: $("#forget-password"),
                position: 'r',
                align: 't',
                width: 'auto',
                height: 'auto',
                content:"密码不能为空"
            });
            flag = true;
        }else{
            if(password != repassword){
                $.pt({
                    target: $("#forget-repassword"),
                    position: 'r',
                    align: 't',
                    width: 'auto',
                    height: 'auto',
                    content:"两次输入的密码不一致"
                });
                flag = true;
            }
        }

        if(flag){
            return false;
        }else{
            $.ajax({
                type: "POST",
                url: "/user/forget",
                data: "isok=2&phone="+phone,
                async: false,
                dataType:"Json",
                success: function(Json){
                    if (Json == "ok") {
                        $.pt({
                            target: $("#forget-code"),
                            position: 'r',
                            align: 't',
                            width: 'auto',
                            height: 'auto',
                            content:"已发送，注意查收"
                        });
                    }
                }
            });
            settime2();
        }
	}


    //重置密码
    function forget2(){
        var phone = $("#forget-phone").val(),
            password = $("#forget-password").val(),
            repassword = $("#forget-repassword").val(),
            code = $("#forget-code").val(),
            flag = false,
            validatecode = null;

        //判断手机号是否正确
        var myreg=/^[1][3,4,5,7,8][0-9]{9}$/;
        if(!myreg.test(phone)){
            $.pt({
                target: $("#forget-phone"),
                position: 'r',
                align: 't',
                width: 'auto',
                height: 'auto',
                content:"手机号不正确"
            });
            flag = true;
        }else{
            $.ajax({
                type: "POST",
                url: "/user/forget",
                data: "isok=1&phone="+phone,
                async: false,
                dataType:"Json",
                success: function(Json){
                    if (Json == "no") {
                        $.pt({
                            target: $("#forget-code"),
                            position: 'r',
                            align: 't',
                            width: 'auto',
                            height: 'auto',
                            content:"手机未注册，请注册"
                        });
                        flag = true;
                    }
                }
            });
		}

        if(password == ""){
            $.pt({
                target: $("#forget-password"),
                position: 'r',
                align: 't',
                width: 'auto',
                height: 'auto',
                content:"密码不能为空"
            });
            flag = true;
        }else{
            if(password != repassword){
                $.pt({
                    target: $("#forget-repassword"),
                    position: 'r',
                    align: 't',
                    width: 'auto',
                    height: 'auto',
                    content:"两次输入的密码不一致"
                });
                flag = true;
            }
        }

        if(flag){
            return false;
        }else{
            $.ajax({
                type: "POST",
                url: "/user/forget",
                data: "isok=3&phone="+phone+"&code="+code+"&password="+password,
                async: false,
                dataType:"Json",
                success: function(Json){
                    if (Json == "xiaoshi") {
                        $.pt({
                            target: $("#forget-code"),
                            position: 'r',
                            align: 't',
                            width: 'auto',
                            height: 'auto',
                            content:"请重新获取验证码"
                        });
                    }else if(Json == "cuowu"){
                        $.pt({
                            target: $("#forget-code"),
                            position: 'r',
                            align: 't',
                            width: 'auto',
                            height: 'auto',
                            content:"验证码输入错误，请重新输入"
                        });
					}else if(Json == "no"){
                        $.pt({
                            target: $("#forget-code"),
                            position: 'r',
                            align: 't',
                            width: 'auto',
                            height: 'auto',
                            content:"修改密码失败"
                        });
					}else{
                        alert("修改成功");
                        window.location.href="/login";
					}
                }
            });
        }
    }


    var countdown=60; //倒计时有效时间
    function settime() {
        var obj=document.getElementsByClassName("fsYzm")[0];
//  	console.log(obj)
        if (countdown == 0) {
            obj.removeAttribute("disabled");
            obj.value="获取验证码";
            countdown = 60;
            return;
        } else {
            obj.setAttribute("disabled", true);
            obj.value="重新发送(" + countdown + ")";
            countdown--;
        }
        setTimeout(function() {
            settime(obj)
        },1000)
    }

    var countdown2=60; //倒计时有效时间
    function settime2() {
        var obj=document.getElementsByClassName("fsYzm2")[0];
//  	console.log(obj)
        if (countdown2 == 0) {
            obj.removeAttribute("disabled");
            obj.value="获取验证码";
            countdown2 = 60;
            return;
        } else {
            obj.setAttribute("disabled", true);
            obj.value="重新发送(" + countdown2 + ")";
            countdown2--;
        }
        setTimeout(function() {
            settime2(obj)
        },1000)
    }
	
	
	
	
	
</script>
<style type="text/css">
html{width: 100%; height: 100%;}

body{

	background-repeat: no-repeat;

	background-position: center center #2D0F0F;

	background-color: #00BDDC;

	background-image: url(images/snow.jpg);

	background-size: 100% 100%;

}

.snow-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 100001; }

</style>
</head>
<body>
	<!-- 雪花背景 -->
	<div class="snow-container"></div>
	<!-- 登录控件 -->
	<div id="login">
		<input id="tab-1" type="radio" name="tab" class="sign-in hidden" checked />
		<input id="tab-2" type="radio" name="tab" class="sign-up hidden" />
		<input id="tab-3" type="radio" name="tab" class="sign-out hidden" />
		<div class="wrapper">
			<!-- 登录页面 -->
			<div class="login sign-in-htm">
				<form class="container offset1 loginform">
					<!-- 猫头鹰控件 -->
					<div id="owl-login" class="login-owl">
						<div class="hand"></div>
						<div class="hand hand-r"></div>
						<div class="arms">
							<div class="arm"></div>
							<div class="arm arm-r"></div>
						</div>
					</div>
					<div class="pad input-container">
						<section class="content">
							<span class="input input--hideo">
								<input class="input__field input__field--hideo" type="text" id="login-username" 
									autocomplete="off" placeholder="请输入用户名或者手机号码" tabindex="1" maxlength="15" />
								<label class="input__label input__label--hideo" for="login-username">
									<i class="fa fa-fw fa-user icon icon--hideo"></i>
									<span class="input__label-content input__label-content--hideo"></span>
								</label>
							</span>
							<span class="input input--hideo">
								<input class="input__field input__field--hideo" type="password" id="login-password"
									   placeholder="请输入密码" tabindex="2" maxlength="15"/>
								<label class="input__label input__label--hideo" for="login-password">
									<i class="fa fa-fw fa-lock icon icon--hideo"></i>
									<span class="input__label-content input__label-content--hideo"></span>
								</label>
							</span>
						</section>
					</div>
					<div class="form-actions">
						<a tabindex="4" class="btn pull-left btn-link text-muted" onClick="goto_forget()">忘记密码?</a>
						<a tabindex="5" class="btn btn-link text-muted" onClick="goto_register()">注册</a>
						<input class="btn btn-primary" type="button" tabindex="3" onClick="login()" value="登录"
							style="color:white;"/>
					</div>
				</form>
			</div>
			<!-- 忘记密码页面 -->
			<div class="login sign-out-htm">
				<form action="#" method="post" class="container offset1 loginform">
					<!-- 猫头鹰控件 -->
					<div id="owl-login" class="forget-owl">
						<div class="hand"></div>
						<div class="hand hand-r"></div>
						<div class="arms">
							<div class="arm"></div>
							<div class="arm arm-r"></div>
						</div>
					</div>
					<div class="pad input-container">
						<section class="content">
							<span class="input input--hideo">
								<input class="input__field input__field--hideo" type="text" id="forget-phone" autocomplete="off" placeholder="请输入手机号码"/>
								<label class="input__label input__label--hideo" for="forget-code">
									<i class="fa fa-fw fa-wifi icon icon--hideo"></i>
									<span class="input__label-content input__label-content--hideo"></span>
								</label>
							</span>
							<span class="input input--hideo">
								<input class="input__field input__field--hideo" type="password" name="register-password" id="forget-password" placeholder="请输入密码" maxlength="15"/>
								<label class="input__label input__label--hideo" for="register-password">
									<i class="fa fa-fw fa-lock icon icon--hideo"></i>
									<span class="input__label-content input__label-content--hideo"></span>
								</label>
							</span>
							<span class="input input--hideo">
								<input class="input__field input__field--hideo" type="password" name="register-password" id="forget-repassword" placeholder="请再次输入密码" maxlength="15"/>
								<label class="input__label input__label--hideo" for="register-password">
									<i class="fa fa-fw fa-lock icon icon--hideo"></i>
									<span class="input__label-content input__label-content--hideo"></span>
								</label>
							</span>
							<span class="input input--hideo">
								<input class="input__field input__field--hideo" type="text" id="forget-code" autocomplete="off" placeholder="请输入手机验证码"/>
								<label class="input__label input__label--hideo" for="forget-code">
									<i class="fa fa-fw fa-wifi icon icon--hideo"></i>
									<span class="input__label-content input__label-content--hideo"></span>
								</label>
							</span>
							<span class="input input--hideo" style="max-width: 150px">
								<input style="width: 150px; height: 40px ; border: none ; background-color: #1a8fb4;" type="button" id="fsYzm2" class="fsYzm2" onclick="forget()" value="获取验证码" />
							</span>
						</section>
					</div>
					<div class="form-actions">
						<a class="btn pull-left btn-link text-muted" onClick="goto_login()">返回登录</a>
						<input class="btn btn-primary" type="button" onClick="forget2()" value="重置密码"
							style="color:white;"/>
					</div>
				</form>
			</div>
			<!-- 注册页面 -->
			<div class="login sign-up-htm">
				<form action="#" method="post" class="container offset1 loginform">
					<!-- 猫头鹰控件 -->
					<div id="owl-login" class="register-owl">
						<div class="hand"></div>
						<div class="hand hand-r"></div>
						<div class="arms">
							<div class="arm"></div>
							<div class="arm arm-r"></div>
						</div>
					</div>
					<div class="pad input-container">
						<section class="content">
							<span class="input input--hideo">
								<input class="input__field input__field--hideo" type="text" id="register-username" name="register-username"
									autocomplete="off" placeholder="请输入用户名" maxlength="15"/>
								<label class="input__label input__label--hideo" for="register-username">
									<i class="fa fa-fw fa-user icon icon--hideo"></i>
									<span class="input__label-content input__label-content--hideo"></span>
								</label>
							</span>
							<span class="input input--hideo">
								<input class="input__field input__field--hideo" type="password" name="register-password" id="register-password" placeholder="请输入密码" maxlength="15"/>
								<label class="input__label input__label--hideo" for="register-password">
									<i class="fa fa-fw fa-lock icon icon--hideo"></i>
									<span class="input__label-content input__label-content--hideo"></span>
								</label>
							</span>
							<span class="input input--hideo">
								<input class="input__field input__field--hideo" type="password" id="register-repassword" placeholder="请确认密码" maxlength="15"/>
								<label class="input__label input__label--hideo" for="register-repassword">
									<i class="fa fa-fw fa-lock icon icon--hideo"></i>
									<span class="input__label-content input__label-content--hideo"></span>
								</label>
							</span>
							<span class="input input--hideo">
								<input class="input__field input__field--hideo" type="text" name="register-phone" id="register-phone" autocomplete="off" placeholder="请输入手机号"/>
								<label class="input__label input__label--hideo" for="register-code">
									<i class="fa fa-fw fa-wifi icon icon--hideo"></i>
									<span class="input__label-content input__label-content--hideo"></span>
								</label>
							</span>
							<span class="input input--hideo">
								<input class="input__field input__field--hideo" type="text" name="register-code" id="register-code" autocomplete="off" placeholder="请输入手机验证码"/>
								<label class="input__label input__label--hideo" for="register-code">
									<i class="fa fa-fw fa-wifi icon icon--hideo"></i>
									<span class="input__label-content input__label-content--hideo"></span>
								</label>
							</span>
							<span class="input input--hideo" style="max-width: 150px">
								<input style="width: 150px; height: 40px ; border: none ; background-color: #1a8fb4;" type="button" id="fsYzm" class="fsYzm" onclick="register()" value="获取验证码" />
							</span>
						</section>
					</div>
					<div class="form-actions">
						<a class="btn pull-left btn-link text-muted" onClick="goto_login()">返回登录</a>
						<input class="btn btn-primary" type="button" onClick="register2()" value="注册"
							style="color:white;"/>
					</div>
				</form>
			</div>
		</div>
	</div>
</body>
</html>